package com.zdxlz.fcmp.upms.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zdxlz.fcmp.common.mybatis.base.BaseEntity;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import static com.zdxlz.fcmp.common.core.constant.ParameterVerifyMsgConstants.ROLEMENU_MENUID_VERIFY_MSG;
import static com.zdxlz.fcmp.common.core.constant.ParameterVerifyMsgConstants.ROLEMENU_ROLEID_VERIFY_MSG;

/**
 * 角色菜单关联表(SystemRoleMenu)表实体类
 *
 * @author aman
 * @since 2025-02-24 09:58:01
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("system_role_menu")
public class SystemRoleMenu extends BaseEntity {

    /**
     * 角色ID
     */
    @TableField("role_id")
    @NotNull(message = ROLEMENU_ROLEID_VERIFY_MSG)
    private Integer roleId;
    /**
     * 菜单ID
     */
    @TableField("menu_id")
    @NotNull(message = ROLEMENU_MENUID_VERIFY_MSG)
    private Integer menuId;
}
